<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    var arr = ['blue','red','yellow','black'];
    var newArr = [];
    for (var i = arr.length - 1;i >= 0;i--){
        newArr[newArr.length] = arr[i];
    }
    console.log(newArr);
</script>
<body>

</body>
</html>